﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace MyWeb
{
    public partial class _Default : Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Control ct = new Control();
            if (string.IsNullOrEmpty(Request.QueryString["p"]))
            {
                ct = Page.LoadControl("~/Components/Home/Home.ascx");
            }
            Main_Web.Controls.Add(ct);
        }
    }
}